//
//  MDFunnyController.swift
//  麦兜直播
//
//  Created by Apple on 16/10/21.
//  Copyright © 2016年 yeqingyu. All rights reserved.
//

import UIKit

class MDFunnyController: MDBaseRoomController {
    fileprivate lazy var funnyNetTool:MDFunnyNetTool = MDFunnyNetTool()
    override func viewDidLoad() {
        super.viewDidLoad()
    }

}
extension MDFunnyController{
    override func setUpUI(){
        super.setUpUI()
        let layout = collectionView.collectionViewLayout as! UICollectionViewFlowLayout
        layout.headerReferenceSize = CGSize.zero
        collectionView.contentInset = UIEdgeInsets(top:0, left: 0, bottom:0, right: 0)
        
    }
    
    
    override func requestData() {
        baseNetTool = funnyNetTool
        funnyNetTool.reuestData {
            self.stopAnimation()
            self.collectionView.reloadData()
        }
    }
}
